/*
 *   Licensed to the Apache Software Foundation (ASF) under one
 *   or more contributor license agreements.  See the NOTICE file
 *   distributed with this work for additional information
 *   regarding copyright ownership.  The ASF licenses this file
 *   to you under the Apache License, Version 2.0 (the
 *   "License"); you may not use this file except in compliance
 *   with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing,
 *   software distributed under the License is distributed on an
 *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *   KIND, either express or implied.  See the License for the
 *   specific language governing permissions and limitations
 *   under the License.
 *
 */
package org.apache.directory.studio.persistence.core;


/**
 * TODO EntryProperties.
 *
 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
 */
public class EntryProperties
{
    private String ldapAttributeName;
    private String javaMemberName;
    private JavaType javaType;
    private boolean isGen = false;
    private Cardinality cardinality;
    private String writtenJavaType;
    private String writtenMapFromEntry;
    private String writtenMapToEntry;


    public String getWrittenJavaType()
    {
        return writtenJavaType;
    }


    public void setWrittenJavaType( String writtenJavaType )
    {
        this.writtenJavaType = writtenJavaType;
    }


    public Cardinality getCardinality()
    {
        return cardinality;
    }


    public void setCardinality( Cardinality cardinality )
    {
        this.cardinality = cardinality;
    }


    public String getLdapAttributeName()
    {
        return ldapAttributeName;
    }


    public void setLdapAttributeName( String ldapAttributeName )
    {
        this.ldapAttributeName = ldapAttributeName;
    }


    public String getJavaMemberName()
    {
        return javaMemberName;
    }


    public void setJavaMemberName( String javaMemberName )
    {
        this.javaMemberName = javaMemberName;
    }


    public JavaType getJavaType()
    {
        return javaType;
    }


    public void setJavaType( JavaType javaType )
    {
        this.javaType = javaType;
    }


    public boolean isGen()
    {
        return isGen;
    }


    public void setGen( boolean isGen )
    {
        this.isGen = isGen;
    }


    public String getWrittenMapFromEntry()
    {
        return writtenMapFromEntry;
    }


    public void setWrittenMapFromEntry( String writtenMapFromEntry )
    {
        this.writtenMapFromEntry = writtenMapFromEntry;
    }


    public String getWrittenMapToEntry()
    {
        return writtenMapToEntry;
    }


    public void setWrittenMapToEntry( String writtenMapToEntry )
    {
        this.writtenMapToEntry = writtenMapToEntry;
    }


    @Override
    public String toString()
    {
        return "EntryProperties [ldapAttributeName=" + ldapAttributeName + ", javaMemberName=" + javaMemberName
            + ", javaType=" + javaType + ", isGen=" + isGen + ", cardinality=" + cardinality + "]";
    }

}
